import threading  
import time
from tkinter import *

def ring(clockname, sound):
	head = "时间到 - pyTimeManager"

	show = Tk()
	show.title(head)

	# settings = eval(sys.argv[1])
	# settings = sys.argv[1]
	# print(settings)
	msg = "       %s       " % clockname

	if sound:
		print("\a")
	# notUsed = tkinter.messagebox.showinfo(head, clockname)
	Label(show, text = msg, font = ("微软雅黑", 20)).pack()
	Button(show, text = " 确定 ", command = show.quit).pack(anchor = E, side=BOTTOM)
	show.mainloop()

if __name__ == "__main__":
    t1 = threading.Thread(target=ring,args=("hello",1,))  

    t1.start()  
    print(t1.getName()) 
    # t1.join()  
    # t2.join()  
    print('-----end')
    time.sleep(10)
    input()
    